package com.bosssoft.fegin;

import com.bosssoft.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Aria
 */
@Component
@FeignClient(name = "oss-provider")
public interface OssFeginService {

    @PostMapping(value = "/alioss/uploadImgFile", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result upload(@RequestPart("file") MultipartFile file);

    //@PostMapping(value = "/alioss/getByets")
    //Result getByets(@RequestBody String url);
}
